package com.shy.service;

import com.shy.model.Student;
import java.util.List;

/**
 * StudentService接口，定义学生相关的业务功能的方法
 *

 */
public interface StudentService {

    Student validateLogin(String rollno, String pwd);
    
    Student findStudentById(String rollno);

    int registerNewStudent(Student s);

    int modifyStudentInfo(Student s);

    int unregister(String rollno);

    List<Student> findAllStudents();

    List<Student> findStudentsByBatchName(String batchName);
    
    List<Student> findStudentsByBatchNameAndPage(String batchName, int pageNo, int pageSize);
    
    int getBatchSize(String batchName);
}
